package lambda;

import java.io.File;
import java.io.FileFilter;

public class Test {
    public static void main(String[] args) {
        File file = new File(".");
//        FileFilter filter = new FileFilter() {
//            public boolean accept(File pathname) {
//             return pathname.isFile();
//            }
//        };
        File []file1 = file.listFiles(f->f.isFile());
        for (File sub:file1) {
            System.out.println(sub.getName());
        }

    }
}
